﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyPassword.ascx.cs" Inherits="Web.Cms.Users.MyPassword" %>
<p class="heading" >
    Mật khẩu cá nhân
</p>
<table border="0" cellpadding="2" cellspacing="2" style="width: 100%" class="InputBox">
    <tr>
        <td>
            <asp:Button ID="btnBack" runat="server"  SkinID="AdminButtonBack" OnClick="btnBack_Click" /></td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblUpdateStatus" Font-Bold="true" ForeColor="red" runat="server"></asp:Label>
        </td>
    </tr>
</table>
<table border="0" cellpadding="2" cellspacing="8" style="width: 100%" class="InputBox">
    <tr>
        <td align="right">
            Mật khẩu:</td>
        <td>
            <asp:TextBox ID="txtPassword" TextMode="password" runat="server" Width="232px" Height="25"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Bạn phải nhập mật khẩu cũ!"
                ValidationGroup="mypass" ControlToValidate="txtPassword" Display="Dynamic"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td align="right">
            Mật khẩu mới:</td>
        <td>
            <asp:TextBox ID="txtNewPassword" TextMode="password" runat="server" Width="232px" Height="25"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Không được để trống"
                ValidationGroup="mypass" ControlToValidate="txtNewPassword" Display="Dynamic"></asp:RequiredFieldValidator>
            <br />
            <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Mật khẩu không trùng!"
                ValidationGroup="mypass" ControlToValidate="txtNewPasswordConfirm" ControlToCompare="txtNewPassword"
                Display="Dynamic"></asp:CompareValidator></td>
    </tr>
    <tr>
        <td align="right">
            Xác nhận mật khẩu mới:</td>
        <td>
            <asp:TextBox ID="txtNewPasswordConfirm" TextMode="password" runat="server" Width="232px" Height="25"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Không được để trống"
                ValidationGroup="mypass" ControlToValidate="txtNewPasswordConfirm"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td>
        </td>
        <td>
            <asp:Button ID="btnUpdate" runat="server" ValidationGroup="mypass" OnClick="btnUpdate_Click"
                SkinID="AdminButtonUpdate"  />
        </td>
    </tr>
</table>
